<div id="blokreg">
    <div id="formreg">
        <div id="titlemerah"><p align="left">Update Info</p></div>

    </ul>
    <?php echo form_open('costumers/update') ?>
    <table>
        <?php foreach ($rows->result() as $costumer): ?>

        <tbody>
            <tr>
                <td style="width:200px;">Name:<font color="#bf0d31">*</font></td>
                <td><?php echo form_input('name', $costumer->name) ?></td>
            </tr>
            <tr>
                <td>Username:</td>
                <td><?php echo form_input('username', $costumer->username, 'disabled') ?></td>
                <?php echo form_hidden('username', $costumer->username, 'disabled') ?>  
            </tr>
            <tr>
                <td>Email:<font color="#bf0d31">*</font></td>
                <td><font color="red"><?php echo form_error('email'); ?></font><?php echo form_input('email', $costumer->email) ?></td>
            </tr>
            <tr>
                <td>Password:<font color="#bf0d31">*</font></td>
                <td><font color="red"><?php echo form_error('password'); ?></font><?php echo form_password('password') ?></td>
            </tr>
            <tr>
                <td>Verify Password:<font color="#bf0d31">*</font></td>
                <td><font color="red"><?php echo form_error('verify_password'); ?></font><?php echo form_password('verify_password') ?></td>
            </tr>
            <tr>
                <td>Last name:</td>
                <td><?php echo form_input('last_name', $costumer->last_name) ?></td>
            </tr>
            <tr>
                <td>Address:</td>
                <?php
                $attributes = array(
                    'name' => 'address',
                    'cols' => '30',
                    'rows' => '5',
                    'id' => 'address',
                );
                ?>
                <td><?php echo form_textarea($attributes, $costumer->address) ?></td>
            </tr>
            <tr>
                <td>Home phone:</td>
                <td><?php echo form_input('home_phone', $costumer->home_phone) ?></td>
            </tr>
            <tr>
                <td>Mobile phone:<font color="#bf0d31">*</font></td>
                <td><font color="red"><?php echo form_error('mobile_phone'); ?></font><?php echo form_input('mobile_phone', $costumer->mobile_phone) ?></td>
            </tr>
            <tr>
                <td>Country:</td>
                <td><?php echo form_input('country', $costumer->country) ?></td>
            </tr>
            <tr>
                <td>City:</td>
                <td><?php echo form_input('city', $costumer->city) ?></td>
            </tr>
            <tr>
                <td>State:</td>
                <td><?php echo form_input('state', $costumer->state) ?></td>
            </tr>
            <tr>
                <td>Zip code:</td>
                <td><?php echo form_input('zip_code', $costumer->zip_code) ?></td>
            </tr></tbody></table>
            <table >
            <thead>
            <tr>
                <td><?php echo form_submit('submit', 'Create', "class='btn'") ?></td>
            </tr></thead>
        <?php endforeach; ?>
    </table>

    <?php echo form_close() ?>
    </div>
</div>